package com.ruoyi.doc.service;

import com.ruoyi.common.core.domain.TreeSelect;
import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.doc.domain.Company;

import java.util.List;
import java.util.Map;

public interface ICompanyService {

    List<TreeSelect> buildDeptTreeSelect(List<SysDept> depts);

    /**
     * 构建前端所需要树结构
     *
     * @param depts 部门列表
     * @return 树结构列表
     */
    List<SysDept> buildDeptTree(List<SysDept> depts);

    Map<String, Object> selectCompanyList(Company company, Integer pageNum, Integer pageSize, String orderBy);

    List<SysDept> selectLazyDept(Long parentNodeId);
}
